.class public Lcom/nbi/map/geocode/GeocodeRequest;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/nbi/common/NBIObject;
.implements Lcom/nbi/common/NBIRequest;


# instance fields
.field private bB:Lnbisdk/so;

.field private ca:Lcom/nbi/common/NBIContext;

.field private ib:Lnbisdk/nb;

.field private ic:Lnbisdk/n;

.field private ie:Lcom/nbi/map/geocode/GeocodeListener;


# direct methods
.method constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/data/Address;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 9

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    const/4 v0, -0x2

    if-le p3, v0, :cond_1

    if-eqz p4, :cond_1

    new-instance v0, Lnbisdk/so;

    invoke-direct {v0}, Lnbisdk/so;-><init>()V

    const-string v1, ""

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getNumber()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getStreet()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCity()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCounty()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getState()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getPostal()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCountry()Ljava/lang/String;

    move-result-object v8

    invoke-virtual/range {v0 .. v8}, Lnbisdk/so;->setAddress(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0, p1, v0, p4}, Lcom/nbi/map/geocode/GeocodeRequest;->a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "address is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    const/4 v0, -0x1

    if-ge p3, v0, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "sliceSize is incorrect"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    if-nez p4, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/data/Address;Ljava/lang/String;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 8

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    if-eqz p3, :cond_1

    const/4 v0, -0x2

    if-le p4, v0, :cond_1

    if-eqz p5, :cond_1

    new-instance v0, Lnbisdk/so;

    invoke-direct {v0}, Lnbisdk/so;-><init>()V

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getStreet()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCity()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCounty()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getState()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getPostal()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p2}, Lcom/nbi/map/data/Address;->getCountry()Ljava/lang/String;

    move-result-object v7

    move-object v1, p3

    invoke-virtual/range {v0 .. v7}, Lnbisdk/so;->setIntersection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0, p1, v0, p5}, Lcom/nbi/map/geocode/GeocodeRequest;->a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "address is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    if-nez p3, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "crossStreet is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    const/4 v0, -0x1

    if-ge p4, v0, :cond_5

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "sliceSize is incorrect"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_5
    if-nez p5, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/data/MapLocation;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    const/4 v0, -0x2

    if-le p3, v0, :cond_1

    if-eqz p4, :cond_1

    invoke-virtual {p2}, Lcom/nbi/map/data/MapLocation;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/so;

    invoke-direct {p0, p1, v0, p4}, Lcom/nbi/map/geocode/GeocodeRequest;->a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "location is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    const/4 v0, -0x1

    if-ge p3, v0, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "sliceSize is incorrect"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    if-nez p4, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/geocode/GeocodeInformation;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 5

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    if-eqz p4, :cond_1

    move-object v0, p2

    check-cast v0, Lcom/nbi/map/geocode/c;

    move-object v1, v0

    invoke-virtual {v1}, Lcom/nbi/map/geocode/c;->aM()Lnbisdk/so;

    move-result-object v1

    iput-object v1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->bB:Lnbisdk/so;

    new-instance v2, Lnbisdk/n;

    iget-object v3, p0, Lcom/nbi/map/geocode/GeocodeRequest;->bB:Lnbisdk/so;

    invoke-interface {p2}, Lcom/nbi/map/geocode/GeocodeInformation;->getInternalObject()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lnbisdk/jv;

    int-to-byte v4, p3

    invoke-direct {v2, v3, v1, v4}, Lnbisdk/n;-><init>(Lnbisdk/so;Lnbisdk/jv;B)V

    iput-object v2, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ic:Lnbisdk/n;

    iput-object p4, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ie:Lcom/nbi/map/geocode/GeocodeListener;

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "context is null"

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_2
    if-nez p2, :cond_3

    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "information is null"

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_3
    if-nez p4, :cond_0

    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "listener is null"

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    const/4 v0, -0x2

    if-le p3, v0, :cond_1

    if-eqz p4, :cond_1

    new-instance v0, Lnbisdk/so;

    invoke-direct {v0}, Lnbisdk/so;-><init>()V

    invoke-virtual {v0, p2}, Lnbisdk/so;->setAirport(Ljava/lang/String;)V

    invoke-direct {p0, p1, v0, p4}, Lcom/nbi/map/geocode/GeocodeRequest;->a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "airport is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    const/4 v0, -0x1

    if-ge p3, v0, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "sliceSize is incorrect"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    if-nez p4, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;Ljava/lang/String;ILcom/nbi/map/geocode/GeocodeListener;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    if-eqz p3, :cond_1

    const/4 v0, -0x2

    if-le p4, v0, :cond_1

    if-eqz p5, :cond_1

    new-instance v0, Lnbisdk/so;

    invoke-direct {v0}, Lnbisdk/so;-><init>()V

    invoke-virtual {v0, p2}, Lnbisdk/so;->setFreeform(Ljava/lang/String;)V

    invoke-virtual {v0, p3}, Lnbisdk/so;->setCountry(Ljava/lang/String;)V

    invoke-direct {p0, p1, v0, p5}, Lcom/nbi/map/geocode/GeocodeRequest;->a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "freeform is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    if-nez p3, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "country is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    const/4 v0, -0x1

    if-ge p4, v0, :cond_5

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "sliceSize is incorrect"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_5
    if-nez p5, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private a(Lcom/nbi/common/NBIContext;Lnbisdk/so;Lcom/nbi/map/geocode/GeocodeListener;)V
    .locals 3

    new-instance v0, Lnbisdk/n;

    invoke-direct {v0, p2}, Lnbisdk/n;-><init>(Lnbisdk/so;)V

    iput-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ic:Lnbisdk/n;

    iput-object p1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ca:Lcom/nbi/common/NBIContext;

    iput-object p3, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ie:Lcom/nbi/map/geocode/GeocodeListener;

    iput-object p2, p0, Lcom/nbi/map/geocode/GeocodeRequest;->bB:Lnbisdk/so;

    new-instance v0, Lcom/nbi/map/geocode/a;

    iget-object v1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ie:Lcom/nbi/map/geocode/GeocodeListener;

    invoke-direct {v0, p0, v1}, Lcom/nbi/map/geocode/a;-><init>(Lcom/nbi/map/geocode/GeocodeRequest;Lcom/nbi/map/geocode/GeocodeListener;)V

    iget-object v1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ca:Lcom/nbi/common/NBIContext;

    invoke-virtual {v1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    new-instance v1, Lnbisdk/gk;

    invoke-direct {v1, v0}, Lnbisdk/gk;-><init>(Lnbisdk/kc;)V

    invoke-static {}, Lnbisdk/bl;->gR()Lcom/navbuilder/nb/f;

    move-result-object v0

    new-instance v2, Lnbisdk/kt;

    invoke-direct {v2, v1}, Lnbisdk/kt;-><init>(Lnbisdk/mg;)V

    new-instance v1, Lnbisdk/gj;

    invoke-direct {v1, v2, v0}, Lnbisdk/gj;-><init>(Lnbisdk/kc;Lcom/navbuilder/nb/f;)V

    iput-object v1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ib:Lnbisdk/nb;

    return-void
.end method


# virtual methods
.method final aM()Lnbisdk/so;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->bB:Lnbisdk/so;

    return-object v0
.end method

.method public cancelRequest()V
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ib:Lnbisdk/nb;

    invoke-virtual {v0}, Lnbisdk/nb;->cancelRequest()V

    return-void
.end method

.method public getInternalObject()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ib:Lnbisdk/nb;

    return-object v0
.end method

.method public isRequestInProgress()Z
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ib:Lnbisdk/nb;

    invoke-virtual {v0}, Lnbisdk/nb;->isRequestInProgress()Z

    move-result v0

    return v0
.end method

.method public startRequest()V
    .locals 2

    iget-object v0, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ib:Lnbisdk/nb;

    iget-object v1, p0, Lcom/nbi/map/geocode/GeocodeRequest;->ic:Lnbisdk/n;

    invoke-virtual {v0, v1}, Lnbisdk/nb;->a(Lnbisdk/n;)V

    return-void
.end method
